package com.frank.stock4j.tusharepro.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.time.LocalDate;
import com.frank.stock4j.tusharepro.bean.IndexDailyBean;

/**
* 描述：获取南华指数每日行情，指数行情也可以通过
* @author: codesmith
**/
@Data
@TableName("index_daily")
public class IndexDailyEntity implements IndexDailyBean {
    
    /*
    * TS指数代码
    */
    @TableId
    @TableField("`ts_code`") protected String tsCode;
    /*
    * 交易日
    */
    @TableId
    @TableField("`trade_date`") protected LocalDate tradeDate;

    @TableField("`close`") protected Double close;

    @TableField("`open`") protected Double open;

    @TableField("`high`") protected Double high;

    @TableField("`low`") protected Double low;

    @TableField("`pre_close`") protected Double preClose;

    @TableField("`change`") protected Double change;

    @TableField("`pct_chg`") protected Double pctChg;

    @TableField("`vol`") protected Double vol;

    @TableField("`amount`") protected Double amount;
}